package com.lagou.task09;

public class Gole implements Metal,Money{
    @Override
    public void shine() {
        System.out.println("发出了金黄色的光芒...");
    }

    @Override
    public void buy() {
        System.out.println("买了好多好吃的");
    }

    public static void main(String[] args) {
        //声明接口类型的引用, 指向实现类的对象
        Metal mt = new Gole();
        mt.shine();
        Money mn = new Gole();
        mn.buy();
    }
}
